package com.example.bus.ui.station;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.example.bus.R;

public class StationAdapter extends RecyclerView.Adapter<StationAdapter.StationViewHolder> {

    private Context context;

    public StationAdapter(Context context) {
        this.context = context;
    }


    @NonNull
    @Override
    public StationAdapter.StationViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new StationViewHolder(LayoutInflater.from(context).
                inflate(R.layout.station_item,parent,false));
    }

    @Override
    public void onBindViewHolder(@NonNull StationAdapter.StationViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 60;
    }

    class StationViewHolder extends RecyclerView.ViewHolder {
        public StationViewHolder(@NonNull View itemView) {
            super(itemView);
        }
    }
}
